#!/bin/bash
echo "Downloading dependent script 'json'"
wget http://prdownloads.sourceforge.NET/scons/scons-2.2.0.tar.gz
sleep 2
tar -zxvf scons-2.2.0.tar.gz scons-2.2.0/
cd scons-2.2.0/
sudo python setup.py install
cd ..
wget https://sourceforge.net/projects/jsoncpp/files/latest/download/jsoncpp-src-0.5.0.tar.gz &&
sleep 2
tar -zxvf jsoncpp-src-0.5.0.tar.gz
cd ./jsoncpp-src-0.5.0
sudo scons platform=linux-gcc
sudo mv libs/linux-gcc-7/libjson_linux-gcc-7_libmt.so /lib
sudo ln /lib/libjson_linux-gcc-7_libmt.so /lib/libjson.so
sudo mv include/json/ /usr/include/
sudo ldconfig
